﻿<%@ Page Language="C#" MasterPageFile="~/Templates/Public.master" AutoEventWireup="true" CodeFile="News.aspx.cs" Inherits="News" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="LeftContent" Runat="Server">
    <div>
        <table cellpadding="0" cellspacing="0">
            <tr>
                <td align="right" class="highlighted-text">
                    Type a title to search from the list: <asp:TextBox ID="tbxTitle" runat="server" Width="370px"></asp:TextBox>
                </td>
                <td align="right">
                    <asp:Button ID="btcSearch" OnClick="Search_Click" runat="server" CssClass="button" Text="Search" />
                </td>
            </tr>
        </table>
        <asp:Repeater ID="rptNews" runat="server" OnItemDataBound="News_DataBound">
            <HeaderTemplate>
                <div class="news-head">
                    <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                            <td class="sub-head-left">&nbsp;</td>
                            <td>News</td>
                            <td class="sub-head-right" align="right">&nbsp;</td>
                        </tr>
                    </table>
                </div>
            </HeaderTemplate>
            <ItemTemplate>
                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <td class="rounded_left_top"></td>
                        <td class="rounded_top"></td>
                        <td class="rounded_right_top"></td>
                    </tr>
                    <tr>
                        <td class="rounded_left"></td>
                        <td>
                            <div class="news-item">
                                <div class="news-title">
                                    <asp:HyperLink ID="hlkNewsTitle" runat="server" Text='<%# Eval("Title") %>'></asp:HyperLink>
                                </div>
                                <div class="news-body">
                                    <asp:Literal ID="ltlNewsShortDescription" runat="server" Text='<%# Server.HtmlDecode((string)Eval("ShortDescription")) %>'></asp:Literal>
                                </div>
                            </div>
                        </td>
                        <td class="rounded_right"></td>
                    </tr>
                    <tr>
                        <td class="rounded_left_bottom"></td>
                        <td class="rounded_bottom"></td>
                        <td class="rounded_right_bottom"></td>
                    </tr>
                </table>
            </ItemTemplate>
            <SeparatorTemplate>
               <div class="news-seperator"></div>
            </SeparatorTemplate>
            <AlternatingItemTemplate>
                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <td class="rounded_left_top"></td>
                        <td class="rounded_top"></td>
                        <td class="rounded_right_top"></td>
                    </tr>
                    <tr>
                        <td class="rounded_left"></td>
                        <td>
                            <div class="news-item">
                                <div class="news-title">
                                    <asp:HyperLink ID="hlkNewsTitle2" runat="server" Text='<%# Eval("Title") %>'></asp:HyperLink>
                                </div>
                                <div class="news-body">
                                    <asp:Literal ID="ltlNewsShortDescription2" runat="server" Text='<%# Server.HtmlDecode((string)Eval("ShortDescription"))%>'></asp:Literal>
                                </div>
                            </div>
                        </td>
                        <td class="rounded_right"></td>
                    </tr>
                    <tr>
                        <td class="rounded_left_bottom"></td>
                        <td class="rounded_bottom"></td>
                        <td class="rounded_right_bottom"></td>
                    </tr>
                </table>
            </AlternatingItemTemplate>
        </asp:Repeater>
    </div>
    <div class="pager-area">
        <asp:Repeater ID="rptPager" runat="server" OnItemDataBound="Pager_DataBound">
            <ItemTemplate>
                <asp:LinkButton ID="lkbPageIndex" runat="server" CssClass="page-index" Width="24px" Height="24px"
                    Text='<%# Container.DataItem.ToString() %>' CommandName="PagingCommand"
                    CommandArgument='<%# Container.DataItem %>'
                    OnCommand="Page_Change"></asp:LinkButton>
            </ItemTemplate>
        </asp:Repeater>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContent" Runat="Server">
</asp:Content>

